import request from "@/utils/request";

export function approvalType(params, data) {
  return request({
    url: "/system/checkHistoryinfo/checkManageList",
    method: "post",
    params,
    data,
  });
}

export function approvalProcessApi(data) {
  return request({
    url: "/system/checkHistoryinfo",
    method: "put",
    data
  });
}


// 项目信息审批
export function informationApprove(data) {
  return request({
    url: "/system/plan/getPlanCheckState",
    method: "put",
    data
  })
}

// 转立项审批
export function approvalTransfer(data) {
  return request({
    url: "/system/plan/getCheckState",
    method: "put",
    data
  })
}

// 立项审批
export function lxapprovalApi(data) {
  return request({
    url: "/project/transfer/statusByProject",
    method: "put",
    data
  })
}

// 项目归档审批
export function fileApprove(data) {
  return request({
    url: "/system/filing/getFilingCheckState",
    method: "put",
    data
  })
}

// 项目复盘审批
export function replayApprove(data) {
  return request({
    url: "/system/review/statusByProject",
    method: "put",
    data
  })
}

// 成果交付审批
export function taskDelivery(data) {
  return request({
    url: "/system/task/sealBy",
    method: "put",
    data
  })
}


// 任务审批
export function missionDelivery(data) {
  return request({
    url: "/system/task/sealBys",
    method: "put",
    data
  })
}


// 撤回
export function withdrawApi(data) {
  return request({
    url: "/system/checkHistoryinfo/withDraw/" + data,
    method: "get",
  })
}




